package top.ranzhang.bean.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import top.ranzhang.bean.entity.User;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
public class ChildToUserVO {

    private Integer id;

    private LocalDate birthday;

    /**
     * 购买课时
     */
    private Integer buyHour;

    private Integer userId;

    /**
     * 使用课时
     */
    private Integer useHour;

    /**
     * 赠送课时
     */
    private Integer giveHour;

    /**
     * 1:男,0:女
     */
    private Integer sex;

    private String name;

    private String school;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime createTime;
    //家长
    private User user;
}
